package com.zhima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhima.entity.OjResource;
import com.zhima.entity.OjRoleResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhima
 * @since 2023-08-23
 */
@Mapper
public interface OjRoleResourceMapper extends BaseMapper<OjRoleResource> {
    /**
     * 根据给定的角色id集合查询该角色具有的资源列表
     *
     * @param roleIds
     * @return
     */
    List<OjResource> queryRolesResource(@Param("roleIds") List<Integer> roleIds);
}
